
<form id="form_edit"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td width="20%" align="right">流水号：</td>
		<td width="30%">{[$result.id]}（{[$result.oper_t]}）</td>
		<td width="20%" align="right">状态：</td>
		<td width="30%">{[$result.status_t]}</td>
	</tr>
	<tr>
		<td align="right">出库人：</td>
		<td><input type="text" name="emp" id="emp" size="12" value="{[$result.emp]}:{[$result.emp_t]}" title="{[$t.emp_|emp:'出库人']}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
		<td align="right">出库日期：</td>
		<td><input type="text" name="date" id="date" size="12" value="{[$result.date]}"></td>		
	</tr>
	<tr>
		<td align="right">产品：</td>
		<td><input type="text" name="mold" id="mold" size="16" value="{[$result.mold]}:{[$result.mold_t]}" title="{[$t.mold]}"></td>
		<td align="right">状态：</td>
		<td colspan="3"><select name='status'>
			{[html_options options=$status_option selected=$result.status]}
		</select></td>
	</tr>
	<tr>
		<td width="20%" align="right">名称：</td>
		<td width="80%" colspan="3"><textarea rows="2" name="name" id="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td align="right">规格：</td>
		<td colspan="3"><textarea rows="2" name="standard" id="standard" cols="55">{[$result.standard]}</textarea></td>
	</tr>
	<tr>
		<td align="right">数量：</td>
		<td><input type="text" name="amount" id="amount" size="8" value="{[$result.amount|string_float]}"></td>
		<td align="right">单位：</td>
		<td><input type="text" name="unit" id="unit" size="8" value="{[$result.unit]}"> <select name='unit_t' id='unit_t'>
			{[html_options options=$unit_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">类型：</td>
		<td><select name='receive' id='receive'>
			{[html_options options=$receive_option selected=$result.receive]}
		</select></td>
		<td align="right">单价：</td>
		<td><input type="text" name="price" id="price" size="8" value="{[$result.price|string_price]}"></td>
	</tr>
	<tr id="receive_1">
		<td align="right">领料人：</td>
		<td colspan="3"><input type="text" name="applicant" id="applicant" size="16"
			value="{[$result.receiver]}:{[$result.receiver_t]}"></td>
	</tr>
	<tr id="receive_2">
		<td align="right">供应商：</td>
		<td colspan="3"><input type="text" name="supplier" id="supplier" size="16"
			value="{[$result.receiver]}:{[$result.receiver_t]}" title="{[$t.supplier]}"> <a href="javascript:void(0)" id="receiver_x"
			onclick="Common.toggle(this, '#label_linkman')" class="ui-icon ui-icon-circle-triangle-s" style="display: inline-table"></a></td>
	</tr>
	<tr id="label_linkman">
		<td></td>
		<td colspan="3">{[include file="_linkman.tpl"]}</td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" id="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
	
</table>
</form>

<script type="text/javascript"
	src="js/material/out/add.js?r={[$smarty.now]}"></script>

<script type='text/javascript'>
var a = $("#receive").val();
_receive(a);
</script>
